package com.example.dormlist.entity;


import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Getter
@Setter
@NoArgsConstructor
@Entity
@Table(name = "order_table")
public class Order {
    @Id
    @Column(name = "id")
    private Long id;

    @Column(name = "uid")
    private Long uid;

    @Column(name = "dorm_id")
    private Long dormId;

    @Column(name = "gender")
    private String gender;

    @Column(name = "number")
    private int number;

    @Column(name = "is_success")
    private boolean isSuccess;

    @Column(name = "order_time")
    private Date orderTime;
}
